package com.bigflexlib.x.flash.utils
{
	import flash.utils.getQualifiedClassName;
	
	/**
	 * 
	 * return the last portion of the class name of the given object
	 * 
	 * for an object of type mx.collections.ArrayCollection, returns "ArrayCollection"
	 * 
	 * @param value
	 * @return 
	 * 
	 */
	public function getClassName( value:*):String
	{
		var className:String = getQualifiedClassName( value ) as String;
		return className.substring( className.lastIndexOf( "::" ) + 2 ); 
	}
	
}